package com.minmin.testCases;

import lombok.extern.slf4j.Slf4j;
import org.openqa.selenium.WebDriver;

@Slf4j
public class TestStock extends TestCom {


    public TestStock(WebDriver driver) {
        super(driver);
    }

    public void testStock() throws InterruptedException {
        log.info("进入仓储模块");
        eXpath("//div/span[text()=\"仓储\"]").click();

        log.info("测试入库导入");
        testImportStock();
        log.info("--------------------------------------------");
        Thread.sleep(1000);

        log.info("测试出库管理");
        testOutStock();
        log.info("--------------------------------------------");
        Thread.sleep(1000);
    }

    private void testOutStock() throws InterruptedException {

    }

    private void testImportStock() throws InterruptedException {

        eXpath("//span[text()=\"入库\"]").click();
        eXpath("//span[text()=\"入库导入\"]").click();
        eXpath("//input[@type=\"file\"]").sendKeys(getBaseUrl() + "src/main/java/com/minmin/xls/入库导入模板.xlsx");

    }

}
